package com.ct.model.map;

import com.ct.model.common.longpk.BaseEntity;

import javax.persistence.*;
import java.util.Date;

import org.hibernate.annotations.Type;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 22.11.2009
 * Time: 15:28:39
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "CUS_ORDER")
@AttributeOverride(name="id", column = @Column(name="id") )
public class Order  extends BaseEntity {
    private Long cardTypeId;
    private String cardNumber;
    private String custumerName;
    private String driverLicense;
    private String carModel;
    private String stateNumber;
    private String color;
    private String weight;
    private String phone;
    private String orderPlaceStart;
    private String orderPlaceDesc;
    private String orderPlaceEnd;
    private Double encashe;
    private Double cashless;
    private String malfunction;
    private String carState;
    private String carChoice;
    private String carChoiseType;
    private String decision;
    private Date dateStarted;
    private Date dateEnded;
    private Long creditCardTypeId;
    private String creditCardNumber;
    private String authorizationCode;
    private String organization;
    private String organizationPhone;
    private Double discount;
    private String notes;
    private String driver;
    private String driverHasFound;
    private String driverWhoHelped;
    private Byte orderState;
    private Date orderDate;
    private Date orderDateStart;
    private String managerName;
    private Byte priority;
    private Boolean callCastumerOrNot;
    private Boolean callDriverOrNot;
    private Double equalEvacuationPrice;
    private Double latPlaceStart;
    private Double lonPlaceStart;
    private Double latPlaceEnd;
    private Double lonPlaceEnd;

    @Column(name = "card_type_id")
    public Long getCardTypeId() {
        return cardTypeId;
    }

    public void setCardTypeId(Long cardTypeId) {
        this.cardTypeId = cardTypeId;
    }

    @Column(name = "card_number")
    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }
    
    @Column(name = "customer_fio")
    public String getCustumerName() {
        return custumerName;
    }

    public void setCustumerName(String custumerName) {
        this.custumerName = custumerName;
    }

    @Column(name = "driver_license")
    public String getDriverLicense() {
        return driverLicense;
    }

    public void setDriverLicense(String driverLicense) {
        this.driverLicense = driverLicense;
    }

    @Column(name = "car_mark_model")
    public String getCarModel() {
        return carModel;
    }

    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    @Column(name = "state_number")
    public String getStateNumber() {
        return stateNumber;
    }

    public void setStateNumber(String stateNumber) {
        this.stateNumber = stateNumber;
    }

    @Column(name = "color")
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Column(name = "weight")
    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "order_place_start")
    public String getOrderPlaceStart() {
        return orderPlaceStart;
    }

    public void setOrderPlaceStart(String orderPlaceStart) {
        this.orderPlaceStart = orderPlaceStart;
    }

    @Column(name = "order_place_description")
    public String getOrderPlaceDesc() {
        return orderPlaceDesc;
    }

    public void setOrderPlaceDesc(String orderPlaceDesc) {
        this.orderPlaceDesc = orderPlaceDesc;
    }

    @Column(name = "order_place_end")
    public String getOrderPlaceEnd() {
        return orderPlaceEnd;
    }

    public void setOrderPlaceEnd(String orderPlaceEnd) {
        this.orderPlaceEnd = orderPlaceEnd;
    }

    @Column(name = "encash")
    public Double getEncashe() {
        return encashe;
    }

    public void setEncashe(Double encashe) {
        this.encashe = encashe;
    }

    @Column(name = "cashless")
    public Double getCashless() {
        return cashless;
    }

    public void setCashless(Double cashless) {
        this.cashless = cashless;
    }

    @Column(name = "malfunction")
    public String getMalfunction() {
        return malfunction;
    }

    public void setMalfunction(String malfunction) {
        this.malfunction = malfunction;
    }

    @Column(name = "car_state")
    public String getCarState() {
        return carState;
    }

    public void setCarState(String carState) {
        this.carState = carState;
    }

    @Column(name = "car_choice")
    public String getCarChoice() {
        return carChoice;
    }

    public void setCarChoice(String carChoice) {
        this.carChoice = carChoice;
    }

    @Column(name = "car_choice_type")
    public String getCarChoiseType() {
        return carChoiseType;
    }

    public void setCarChoiseType(String carChoiseType) {
        this.carChoiseType = carChoiseType;
    }

    @Column(name = "decision")
    public String getDecision() {
        return decision;
    }

    public void setDecision(String decision) {
        this.decision = decision;
    }

    @Column(name = "date_started")
    @Temporal(value = TemporalType.TIMESTAMP)
    public Date getDateStarted() {
        return dateStarted;
    }

    public void setDateStarted(Date dateStarted) {
        this.dateStarted = dateStarted;
    }

    @Column(name = "date_ended")
    @Temporal(value = TemporalType.TIMESTAMP)
    public Date getDateEnded() {
        return dateEnded;
    }

    public void setDateEnded(Date dateEnded) {
        this.dateEnded = dateEnded;
    }

    @Column(name = "credit_card_type_id")
    public Long getCreditCardTypeId() {
        return creditCardTypeId;
    }

    public void setCreditCardTypeId(Long creditCardTypeId) {
        this.creditCardTypeId = creditCardTypeId;
    }

    @Column(name = "credit_card_number")
    public String getCreditCardNumber() {
        return creditCardNumber;
    }

    public void setCreditCardNumber(String creditCardNumber) {
        this.creditCardNumber = creditCardNumber;
    }

    @Column(name = "autorization_code")
    public String getAuthorizationCode() {
        return authorizationCode;
    }

    public void setAuthorizationCode(String authorizationCode) {
        this.authorizationCode = authorizationCode;
    }

    @Column(name = "organization")
    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    @Column(name = "organization_phone")
    public String getOrganizationPhone() {
        return organizationPhone;
    }

    public void setOrganizationPhone(String organizationPhone) {
        this.organizationPhone = organizationPhone;
    }

    @Column(name = "discount")
    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    @Column(name = "notes")
    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Column(name = "driver")
    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    @Column(name = "driver_has_found")
    public String getDriverHasFound() {
        return driverHasFound;
    }

    public void setDriverHasFound(String driverHasFound) {
        this.driverHasFound = driverHasFound;
    }

    @Column(name = "driver_who_helped")
    public String getDriverWhoHelped() {
        return driverWhoHelped;
    }

    public void setDriverWhoHelped(String driverWhoHelped) {
        this.driverWhoHelped = driverWhoHelped;
    }

    @Column(name = "order_state")
    public Byte getOrderState() {
        return orderState;
    }

    public void setOrderState(Byte orderState) {
        this.orderState = orderState;
    }

    @Column(name = "order_date")
    @Temporal(value = TemporalType.TIMESTAMP)
    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    @Column(name = "order_date_start")
    @Temporal(value = TemporalType.TIMESTAMP)
    public Date getOrderDateStart() {
        return orderDateStart;
    }

    public void setOrderDateStart(Date orderDateStart) {
        this.orderDateStart = orderDateStart;
    }

    @Column(name = "manager_fio")
    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    @Column(name = "priority")
    public Byte getPriority() {
        return priority;
    }

    public void setPriority(Byte priority) {
        this.priority = priority;
    }

    @Type(type = "yes_no")
    @Column(name = "call_customer_or_not")
    public Boolean getCallCastumerOrNot() {
        return callCastumerOrNot;
    }

    public void setCallCastumerOrNot(Boolean callCastumerOrNot) {
        this.callCastumerOrNot = callCastumerOrNot;
    }

    @Type(type = "yes_no")
    @Column(name = "call_driver_or_not")
    public Boolean getCallDriverOrNot() {
        return callDriverOrNot;
    }

    public void setCallDriverOrNot(Boolean callDriverOrNot) {
        this.callDriverOrNot = callDriverOrNot;
    }

    @Column(name = "equal_evacuation_price")
    public Double getEqualEvacuationPrice() {
        return equalEvacuationPrice;
    }

    public void setEqualEvacuationPrice(Double equalEvacuationPrice) {
        this.equalEvacuationPrice = equalEvacuationPrice;
    }

    @Column(name = "lat_place_start")
    public Double getLatPlaceStart() {
        return latPlaceStart;
    }

    public void setLatPlaceStart(Double latPlaceStart) {
        this.latPlaceStart = latPlaceStart;
    }

    @Column(name = "lon_place_start")
    public Double getLonPlaceStart() {
        return lonPlaceStart;
    }

    public void setLonPlaceStart(Double lonPlaceStart) {
        this.lonPlaceStart = lonPlaceStart;
    }

    @Column(name = "lat_place_end")
    public Double getLatPlaceEnd() {
        return latPlaceEnd;
    }

    public void setLatPlaceEnd(Double latPlaceEnd) {
        this.latPlaceEnd = latPlaceEnd;
    }

    @Column(name = "lon_place_end")
    public Double getLonPlaceEnd() {
        return lonPlaceEnd;
    }

    public void setLonPlaceEnd(Double lonPlaceEnd) {
        this.lonPlaceEnd = lonPlaceEnd;
    }    
}
